fix a few build warnings
This commit is contained in:
parent
48062a8267
commit
61ad45a01a
|
@ -2113,9 +2113,6 @@ async_free (AsyncData *async)
|
||||||
static void
|
static void
|
||||||
set_busy (XedFileBrowserWidget *obj, gboolean busy)
|
set_busy (XedFileBrowserWidget *obj, gboolean busy)
|
||||||
{
|
{
|
||||||
#if !GTK_CHECK_VERSION (3, 16, 0)
|
|
||||||
GdkCursor *cursor;
|
|
||||||
#endif
|
|
||||||
GdkWindow *window;
|
GdkWindow *window;
|
||||||
|
|
||||||
window = gtk_widget_get_window (GTK_WIDGET (obj->priv->treeview));
|
window = gtk_widget_get_window (GTK_WIDGET (obj->priv->treeview));
|
||||||
|
|
|
@ -288,10 +288,6 @@ close_input_stream_ready_cb (GInputStream *stream,
|
||||||
static void
|
static void
|
||||||
write_complete (AsyncData *async)
|
write_complete (AsyncData *async)
|
||||||
{
|
{
|
||||||
XedDocumentLoader *loader;
|
|
||||||
|
|
||||||
loader = XED_DOCUMENT_LOADER (async->loader);
|
|
||||||
|
|
||||||
if (async->loader->priv->stream)
|
if (async->loader->priv->stream)
|
||||||
g_input_stream_close_async (G_INPUT_STREAM (async->loader->priv->stream),
|
g_input_stream_close_async (G_INPUT_STREAM (async->loader->priv->stream),
|
||||||
G_PRIORITY_HIGH,
|
G_PRIORITY_HIGH,
|
||||||
|
|
|
@ -516,7 +516,7 @@ DEFINE_INT_PREF (print_line_numbers,
|
||||||
DEFINE_STRING_PREF (print_font_body,
|
DEFINE_STRING_PREF (print_font_body,
|
||||||
GPM_PRINT_FONT_BODY)
|
GPM_PRINT_FONT_BODY)
|
||||||
|
|
||||||
gchar *
|
static gchar *
|
||||||
xed_prefs_manager_get_default_string_value (const gchar *key)
|
xed_prefs_manager_get_default_string_value (const gchar *key)
|
||||||
{
|
{
|
||||||
gchar *font = NULL;
|
gchar *font = NULL;
|
||||||
|
|
|
@ -102,10 +102,6 @@ xed_progress_message_area_get_property (GObject *object,
|
||||||
GValue *value,
|
GValue *value,
|
||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
XedProgressMessageArea *area;
|
|
||||||
|
|
||||||
area = XED_PROGRESS_MESSAGE_AREA (object);
|
|
||||||
|
|
||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -87,11 +87,11 @@ save_window_session (GKeyFile *state_file,
|
||||||
|
|
||||||
panel = xed_window_get_side_panel (window);
|
panel = xed_window_get_side_panel (window);
|
||||||
g_key_file_set_boolean (state_file, group_name, "side-panel-visible",
|
g_key_file_set_boolean (state_file, group_name, "side-panel-visible",
|
||||||
gtk_widget_get_visible (panel));
|
gtk_widget_get_visible (GTK_WIDGET (panel)));
|
||||||
|
|
||||||
panel = xed_window_get_bottom_panel (window);
|
panel = xed_window_get_bottom_panel (window);
|
||||||
g_key_file_set_boolean (state_file, group_name, "bottom-panel-visible",
|
g_key_file_set_boolean (state_file, group_name, "bottom-panel-visible",
|
||||||
gtk_widget_get_visible (panel));
|
gtk_widget_get_visible (GTK_WIDGET (panel)));
|
||||||
|
|
||||||
active_document = xed_window_get_active_document (window);
|
active_document = xed_window_get_active_document (window);
|
||||||
if (active_document)
|
if (active_document)
|
||||||
|
|
|
@ -1794,7 +1794,7 @@ start_interactive_search_real (XedView *view)
|
||||||
gtk_widget_get_visible (view->priv->search_window))
|
gtk_widget_get_visible (view->priv->search_window))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (!gtk_widget_has_focus (view))
|
if (!gtk_widget_has_focus (GTK_WIDGET (view)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
|
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
|
||||||
|
|
|
@ -3398,9 +3398,9 @@ notebook_button_press_event (GtkNotebook *notebook,
|
||||||
}
|
}
|
||||||
else if (GDK_BUTTON_PRESS == event->type && 2 == event->button)
|
else if (GDK_BUTTON_PRESS == event->type && 2 == event->button)
|
||||||
{
|
{
|
||||||
GtkWidget *tab;
|
XedTab *tab;
|
||||||
tab = GTK_WIDGET (xed_window_get_active_tab (window));
|
tab = xed_window_get_active_tab (window);
|
||||||
notebook_tab_close_request (notebook, tab, window);
|
notebook_tab_close_request (XED_NOTEBOOK (notebook), tab, GTK_WINDOW (window));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue