[anjuta] various: Fixed compile warnings and a real bug in the gdbmi plugin
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] various: Fixed compile warnings and a real bug in the gdbmi plugin
- Date: Sun, 18 Nov 2012 14:14:35 +0000 (UTC)
commit 9a2c4a1055c4c70294e1637f9d74da67d2034b88
Author: Johannes Schmid <jhs gnome org>
Date: Sat Nov 17 15:45:00 2012 +0100
various: Fixed compile warnings and a real bug in the gdbmi plugin
libanjuta/anjuta-command-bar.c | 4 ++--
libanjuta/anjuta-drop-entry.c | 4 ----
libanjuta/anjuta-entry.c | 4 ----
libanjuta/anjuta-environment-editor.c | 10 +++++-----
libanjuta/anjuta-file-list.c | 2 +-
libanjuta/anjuta-launcher.c | 6 +++---
libanjuta/anjuta-profile-manager.c | 5 +----
libanjuta/anjuta-save-prompt.c | 2 +-
libanjuta/anjuta-session.c | 5 ++---
libanjuta/anjuta-status.c | 2 +-
plugins/debug-manager/data_view.c | 4 ++--
plugins/debug-manager/sparse_view.c | 4 ++--
plugins/devhelp/plugin.c | 4 ++--
plugins/dir-project/dir-project.c | 3 +--
plugins/file-loader/plugin.c | 4 ++--
plugins/file-wizard/plugin.c | 2 --
plugins/gdb/gdbmi.c | 2 +-
plugins/git/git-repository-selector.c | 5 +++--
plugins/glade/plugin.c | 10 +++++-----
plugins/message-view/anjuta-msgman.c | 4 ++--
plugins/message-view/plugin.c | 4 ++--
plugins/project-wizard/druid.c | 2 +-
plugins/project-wizard/property.c | 2 +-
plugins/snippets-manager/plugin.c | 2 +-
plugins/sourceview/sourceview-print.c | 3 ++-
plugins/starter/plugin.c | 2 +-
plugins/symbol-db/plugin.c | 2 +-
plugins/symbol-db/symbol-db-engine-core.c | 2 +-
plugins/symbol-db/symbol-db-views.c | 2 +-
29 files changed, 47 insertions(+), 60 deletions(-)
---
diff --git a/libanjuta/anjuta-command-bar.c b/libanjuta/anjuta-command-bar.c
index dc447aa..2d5542d 100644
--- a/libanjuta/anjuta-command-bar.c
+++ b/libanjuta/anjuta-command-bar.c
@@ -116,7 +116,7 @@ anjuta_command_bar_add_action_group (AnjutaCommandBar *self,
GtkWidget *frame;
GtkWidget *frame_vbox;
- vbox = gtk_vbox_new (FALSE, 2);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
g_hash_table_insert (self->priv->widgets, (gchar *) group_name,
vbox);
@@ -177,7 +177,7 @@ anjuta_command_bar_add_action_group (AnjutaCommandBar *self,
g_free (frame_label_text);
- frame_vbox = gtk_vbox_new (TRUE, 2);
+ frame_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
g_object_set (G_OBJECT (frame), "shadow-type", GTK_SHADOW_NONE,
NULL);
diff --git a/libanjuta/anjuta-drop-entry.c b/libanjuta/anjuta-drop-entry.c
index f300f77..93743bb 100644
--- a/libanjuta/anjuta-drop-entry.c
+++ b/libanjuta/anjuta-drop-entry.c
@@ -53,10 +53,6 @@ anjuta_drop_entry_init (AnjutaDropEntry *self)
static void
anjuta_drop_entry_finalize (GObject *object)
{
- AnjutaDropEntry *self;
-
- self = ANJUTA_DROP_ENTRY (object);
-
G_OBJECT_CLASS (anjuta_drop_entry_parent_class)->finalize (object);
}
diff --git a/libanjuta/anjuta-entry.c b/libanjuta/anjuta-entry.c
index 81f7b5a..ceb408d 100644
--- a/libanjuta/anjuta-entry.c
+++ b/libanjuta/anjuta-entry.c
@@ -97,10 +97,6 @@ static void
anjuta_entry_icon_release (GtkEntry *entry, GtkEntryIconPosition icon_pos,
GdkEvent *event, gpointer user_data)
{
- AnjutaEntry *self;
-
- self = ANJUTA_ENTRY (entry);
-
if (icon_pos == GTK_ENTRY_ICON_SECONDARY)
gtk_entry_set_text (entry, "");
}
diff --git a/libanjuta/anjuta-environment-editor.c b/libanjuta/anjuta-environment-editor.c
index 9a27f14..516f692 100644
--- a/libanjuta/anjuta-environment-editor.c
+++ b/libanjuta/anjuta-environment-editor.c
@@ -542,7 +542,7 @@ anjuta_environment_editor_init (AnjutaEnvironmentEditor *editor)
/* Create all needed widgets */
expander = gtk_expander_new (_("Environment Variables:"));
gtk_container_add (GTK_CONTAINER (editor), expander);
- hbox = gtk_hbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_container_add (GTK_CONTAINER (expander), hbox);
scrolled = gtk_scrolled_window_new (NULL, NULL);
@@ -554,7 +554,7 @@ anjuta_environment_editor_init (AnjutaEnvironmentEditor *editor)
gtk_container_add (GTK_CONTAINER (scrolled), treeview);
editor->treeview = GTK_TREE_VIEW (treeview);
- vbutton = gtk_vbutton_box_new ();
+ vbutton = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (vbutton), GTK_BUTTONBOX_START);
gtk_box_set_spacing (GTK_BOX (vbutton), 6);
gtk_box_pack_start (GTK_BOX (hbox), vbutton, FALSE, FALSE, 0);
@@ -723,7 +723,7 @@ anjuta_environment_editor_get_all_variables (AnjutaEnvironmentEditor *editor)
GtkTreeIter iter;
all_var = g_new (gchar *, gtk_tree_model_iter_n_children (editor->model, NULL) + 1);
- var = all_var;
+ var = *all_var;
for (valid = gtk_tree_model_get_iter_first (editor->model, &iter); valid; valid = gtk_tree_model_iter_next (editor->model, &iter))
{
@@ -737,13 +737,13 @@ anjuta_environment_editor_get_all_variables (AnjutaEnvironmentEditor *editor)
ENV_COLOR_COLUMN, &color,
-1);
- *var = g_strconcat(name, "=", value, NULL);
+ var = g_strconcat(name, "=", value, NULL);
var++;
g_free (name);
g_free (value);
g_free (color);
}
- *var = NULL;
+ var = NULL;
return all_var;
}
diff --git a/libanjuta/anjuta-file-list.c b/libanjuta/anjuta-file-list.c
index c2fb426..f29d024 100644
--- a/libanjuta/anjuta-file-list.c
+++ b/libanjuta/anjuta-file-list.c
@@ -358,7 +358,7 @@ anjuta_file_list_init (AnjutaFileList *self)
self->priv->copy_button = gtk_button_new_from_stock (GTK_STOCK_COPY);
self->priv->remove_button = gtk_button_new_from_stock (GTK_STOCK_REMOVE);
- button_box = gtk_hbutton_box_new ();
+ button_box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
clear_button = gtk_button_new_from_stock (GTK_STOCK_CLEAR);
diff --git a/libanjuta/anjuta-launcher.c b/libanjuta/anjuta-launcher.c
index 60b43af..b756f38 100644
--- a/libanjuta/anjuta-launcher.c
+++ b/libanjuta/anjuta-launcher.c
@@ -562,7 +562,7 @@ create_password_dialog (const gchar* prompt)
gtk_window_set_wmclass (GTK_WINDOW (dialog), "launcher-password-prompt",
"anjuta");
- hbox = gtk_hbox_new (FALSE, 10);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
gtk_widget_show (hbox);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG(dialog))), hbox);
@@ -571,9 +571,9 @@ create_password_dialog (const gchar* prompt)
gtk_box_pack_start (GTK_BOX(hbox), icon, TRUE, TRUE, 0);
if (strlen (prompt) < 20) {
- box = gtk_hbox_new (FALSE, 5);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
} else {
- box = gtk_vbox_new (FALSE, 5);
+ box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
}
gtk_widget_show (box);
gtk_box_pack_start (GTK_BOX (hbox), box, TRUE, TRUE, 0);
diff --git a/libanjuta/anjuta-profile-manager.c b/libanjuta/anjuta-profile-manager.c
index 241e512..45fe2b7 100644
--- a/libanjuta/anjuta-profile-manager.c
+++ b/libanjuta/anjuta-profile-manager.c
@@ -510,11 +510,8 @@ anjuta_profile_manager_queue_profile (AnjutaProfileManager *profile_manager,
gboolean
anjuta_profile_manager_push (AnjutaProfileManager *profile_manager,
AnjutaProfile *profile, GError **error)
-{
- AnjutaProfileManagerPriv *priv;
-
+{
g_return_val_if_fail (ANJUTA_IS_PROFILE_MANAGER (profile_manager), FALSE);
- priv = profile_manager->priv;
/* Emit profile push signal */
g_signal_emit_by_name (profile_manager, "profile-pushed",
diff --git a/libanjuta/anjuta-save-prompt.c b/libanjuta/anjuta-save-prompt.c
index 5a36292..de56f00 100644
--- a/libanjuta/anjuta-save-prompt.c
+++ b/libanjuta/anjuta-save-prompt.c
@@ -149,7 +149,7 @@ anjuta_save_prompt_init(AnjutaSavePrompt *obj)
gtk_window_set_resizable (GTK_WINDOW (obj), TRUE);
gtk_window_set_default_size (GTK_WINDOW (obj), 400, 300);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (obj))),
vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
diff --git a/libanjuta/anjuta-session.c b/libanjuta/anjuta-session.c
index f611ee9..a71036c 100644
--- a/libanjuta/anjuta-session.c
+++ b/libanjuta/anjuta-session.c
@@ -170,7 +170,6 @@ anjuta_session_clear (AnjutaSession *session)
{
gchar *cmd;
gchar *quoted;
- gint ret;
g_return_if_fail (ANJUTA_IS_SESSION (session));
@@ -181,11 +180,11 @@ anjuta_session_clear (AnjutaSession *session)
quoted = g_shell_quote (session->priv->dir_path);
cmd = g_strconcat ("rm -fr ", quoted, NULL);
- ret = system (cmd);
+ system (cmd);
g_free (cmd);
cmd = g_strconcat ("mkdir -p ", quoted, NULL);
- ret = system (cmd);
+ system (cmd);
g_free (cmd);
g_free (quoted);
}
diff --git a/libanjuta/anjuta-status.c b/libanjuta/anjuta-status.c
index d0a266f..e74f833 100644
--- a/libanjuta/anjuta-status.c
+++ b/libanjuta/anjuta-status.c
@@ -310,7 +310,7 @@ anjuta_status_busy_push (AnjutaStatus *status)
if (status->priv->widgets)
g_hash_table_foreach (status->priv->widgets,
foreach_widget_set_cursor, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
gdk_flush ();
g_signal_emit_by_name (G_OBJECT (status), "busy", TRUE);
}
diff --git a/plugins/debug-manager/data_view.c b/plugins/debug-manager/data_view.c
index 7152cb1..b127f3f 100644
--- a/plugins/debug-manager/data_view.c
+++ b/plugins/debug-manager/data_view.c
@@ -269,7 +269,7 @@ dma_data_view_goto_activate (GtkWidget *menu_item,
gtk_widget_show (frame);
gtk_container_add (GTK_CONTAINER (view->goto_window), frame);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 3);
@@ -624,7 +624,7 @@ dma_data_view_create_widget (DmaDataView *view)
gtk_widget_push_composite_child ();
- wid = gtk_vscrollbar_new (view->buffer_range);
+ wid = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, view->buffer_range);
g_object_ref (wid);
view->range = wid;
gtk_widget_set_parent (wid, GTK_WIDGET (view));
diff --git a/plugins/debug-manager/sparse_view.c b/plugins/debug-manager/sparse_view.c
index 062d2bd..718dbab 100644
--- a/plugins/debug-manager/sparse_view.c
+++ b/plugins/debug-manager/sparse_view.c
@@ -263,7 +263,7 @@ dma_sparse_view_goto_activate (GtkWidget *menu_item,
gtk_widget_show (frame);
gtk_container_add (GTK_CONTAINER (view->priv->goto_window), frame);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 3);
@@ -1259,7 +1259,7 @@ dma_sparse_view_new_with_buffer (DmaSparseBuffer *buffer)
view = g_object_new (DMA_SPARSE_VIEW_TYPE, NULL);
g_assert (view != NULL);
- dma_sparse_view_set_sparse_buffer (view, buffer);
+ dma_sparse_view_set_sparse_buffer (DMA_SPARSE_VIEW(view), buffer);
dma_sparse_buffer_get_iterator_at_address (buffer, &(DMA_SPARSE_VIEW (view))->priv->start, 0);
return view;
diff --git a/plugins/devhelp/plugin.c b/plugins/devhelp/plugin.c
index 3558b8b..6df6b50 100644
--- a/plugins/devhelp/plugin.c
+++ b/plugins/devhelp/plugin.c
@@ -341,7 +341,7 @@ devhelp_activate (AnjutaPlugin *plugin)
FALSE);
/* Tabs in grip */
- devhelp->tab_hbox = gtk_hbox_new (FALSE, 1);
+ devhelp->tab_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1);
gtk_box_pack_start (GTK_BOX (devhelp->tab_hbox),
gtk_image_new_from_stock (ANJUTA_STOCK_DEVHELP_SEARCH,
@@ -375,7 +375,7 @@ devhelp_activate (AnjutaPlugin *plugin)
/*
* Forward/back buttons
*/
- devhelp->custom_label = gtk_hbox_new (FALSE, 1);
+ devhelp->custom_label = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1);
gtk_widget_show (devhelp->custom_label);
gtk_box_pack_start (GTK_BOX (devhelp->custom_label),
diff --git a/plugins/dir-project/dir-project.c b/plugins/dir-project/dir-project.c
index e9f3196..8f3a3ad 100644
--- a/plugins/dir-project/dir-project.c
+++ b/plugins/dir-project/dir-project.c
@@ -764,7 +764,6 @@ foreach_node_save (AnjutaProjectNode *node,
gint state = anjuta_project_node_get_state (node);
AnjutaProjectNode *parent;
GError *err = NULL;
- gboolean ret;
if (state & ANJUTA_PROJECT_MODIFIED)
@@ -805,7 +804,7 @@ foreach_node_save (AnjutaProjectNode *node,
{
case ANJUTA_PROJECT_GROUP:
case ANJUTA_PROJECT_SOURCE:
- ret = g_file_trash (anjuta_project_node_get_file (node), NULL, &err);
+ g_file_trash (anjuta_project_node_get_file (node), NULL, &err);
if (err != NULL)
{
g_warning ("trashing file failed with %s", err->message);
diff --git a/plugins/file-loader/plugin.c b/plugins/file-loader/plugin.c
index 8374554..65334e5 100644
--- a/plugins/file-loader/plugin.c
+++ b/plugins/file-loader/plugin.c
@@ -274,7 +274,7 @@ open_with_dialog (AnjutaFileLoaderPlugin *plugin, const gchar *uri,
message);
g_free (message);
- hbox = gtk_hbox_new (FALSE, 5);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
hbox, FALSE, FALSE, 5);
label = gtk_label_new (_("Open with:"));
@@ -1172,7 +1172,7 @@ on_session_load (AnjutaShell *shell, AnjutaSessionPhase phase,
if (uri)
{
- gchar *fragment = NULL;
+ const gchar *fragment = NULL;
GFile* file = anjuta_session_get_file_from_relative_uri (session, uri, &fragment);
GObject *loader = ianjuta_file_loader_load (IANJUTA_FILE_LOADER (plugin),
file, FALSE, NULL);
diff --git a/plugins/file-wizard/plugin.c b/plugins/file-wizard/plugin.c
index e4e4687..5f777c9 100644
--- a/plugins/file-wizard/plugin.c
+++ b/plugins/file-wizard/plugin.c
@@ -72,7 +72,6 @@ static gboolean
activate_plugin (AnjutaPlugin *plugin)
{
AnjutaFileWizardPlugin *w_plugin;
- static gboolean initialized = FALSE;
DEBUG_PRINT ("%s", "AnjutaFileWizardPlugin: Activating File wizard plugin ...");
w_plugin = ANJUTA_PLUGIN_FILE_WIZARD (plugin);
@@ -84,7 +83,6 @@ activate_plugin (AnjutaPlugin *plugin)
project_root_added,
project_root_removed,
NULL);
- initialized = TRUE;
return TRUE;
}
diff --git a/plugins/gdb/gdbmi.c b/plugins/gdb/gdbmi.c
index 2f6c0f4..60b3fd6 100644
--- a/plugins/gdb/gdbmi.c
+++ b/plugins/gdb/gdbmi.c
@@ -419,7 +419,7 @@ gdbmi_value_parse_real (gchar **ptr)
error = TRUE;
break;
}
- if (gdbmi_value_get_name == NULL)
+ if (gdbmi_value_get_name(val) == NULL)
{
g_warning ("Parse error: Hash element has no name => '%s'",
*ptr);
diff --git a/plugins/git/git-repository-selector.c b/plugins/git/git-repository-selector.c
index 5a1ed83..d339b5b 100644
--- a/plugins/git/git-repository-selector.c
+++ b/plugins/git/git-repository-selector.c
@@ -59,7 +59,8 @@ git_repository_selector_init (GitRepositorySelector *self)
/* Mode selector buttons. Allows the user to use a selected remote or
* enter a URL. */
- button_hbox = gtk_hbox_new (TRUE, 0);
+ button_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_box_set_homogeneous (GTK_BOX(button_hbox), TRUE);
/* Remote toggle button */
self->priv->remote_toggle = gtk_radio_button_new_with_label (NULL,
@@ -94,7 +95,7 @@ git_repository_selector_init (GitRepositorySelector *self)
gtk_box_pack_start (GTK_BOX (self), button_hbox, FALSE, FALSE, 0);
/* Selected remote label */
- remote_hbox = gtk_hbox_new (FALSE, 2);
+ remote_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), _("<b>Selected Remote:</b>"));
diff --git a/plugins/glade/plugin.c b/plugins/glade/plugin.c
index d9164d1..061269e 100644
--- a/plugins/glade/plugin.c
+++ b/plugins/glade/plugin.c
@@ -113,7 +113,7 @@ signal_editor_signal_activated_cb (GladeSignalEditor* seditor,
IAnjutaEditor* current_editor;
GladeWidget *gwidget = glade_signal_editor_get_widget (seditor);
GladeProject *project = glade_widget_get_project (gwidget);
- gchar *path = glade_project_get_path (project);
+ const gchar *path = glade_project_get_path (project);
IAnjutaDocumentManager *docman;
IAnjutaDocument *doc;
@@ -387,9 +387,9 @@ add_glade_member (GladeWidget *widget,
IAnjutaEditor* current_editor;
IAnjutaDocumentManager *docman;
GladeProject *project = glade_widget_get_project (widget);
- gchar *path = glade_project_get_path (project);
- gchar *widget_name = glade_widget_get_name (widget);
- gchar *widget_typename = G_OBJECT_TYPE_NAME (glade_widget_get_object(widget));
+ const gchar *path = glade_project_get_path (project);
+ const gchar *widget_name = glade_widget_get_name (widget);
+ const gchar *widget_typename = G_OBJECT_TYPE_NAME (glade_widget_get_object(widget));
IAnjutaDocument *doc;
docman = anjuta_shell_get_interface (ANJUTA_PLUGIN (plugin)->shell,
@@ -656,7 +656,7 @@ activate_plugin (AnjutaPlugin *plugin)
priv->editor = GTK_WIDGET(glade_editor_new());
priv->palette = glade_palette_new();
- priv->palette_box = gtk_vbox_new (FALSE, 5);
+ priv->palette_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
priv->selector_toggle = create_selector_tool_button ();
priv->resize_toggle = create_drag_resize_tool_button ();
button_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
diff --git a/plugins/message-view/anjuta-msgman.c b/plugins/message-view/anjuta-msgman.c
index dbdf9af..8f9721e 100644
--- a/plugins/message-view/anjuta-msgman.c
+++ b/plugins/message-view/anjuta-msgman.c
@@ -128,7 +128,7 @@ anjuta_msgman_page_new (GtkWidget * view, const gchar * name,
page->label = gtk_label_new (name);
gtk_misc_set_alignment (GTK_MISC(page->label), 0.0, 0.5);
gtk_label_set_ellipsize (GTK_LABEL(page->label), PANGO_ELLIPSIZE_END);
- box = gtk_hbox_new (FALSE, 0);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_spacing (GTK_BOX (box), 5);
if (pixmap && strlen(pixmap))
{
@@ -165,7 +165,7 @@ anjuta_msgman_page_new (GtkWidget * view, const gchar * name,
msgman);
- page->box = gtk_hbox_new (FALSE, 0);
+ page->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX(page->box), box, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX(page->box), page->close_button, FALSE, FALSE, 0);
diff --git a/plugins/message-view/plugin.c b/plugins/message-view/plugin.c
index e97f8ba..cc0b832 100644
--- a/plugins/message-view/plugin.c
+++ b/plugins/message-view/plugin.c
@@ -349,7 +349,7 @@ static void
create_toggle_buttons (MessageViewPlugin* plugin,
GtkWidget* hbox)
{
- GtkWidget* filter_buttons_box = gtk_hbox_new (FALSE, 0);
+ GtkWidget* filter_buttons_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
plugin->normal = create_mini_button (plugin, "message-manager-plugin-icon");
plugin->info = create_mini_button (plugin, GTK_STOCK_INFO);
@@ -382,7 +382,7 @@ ianjuta_msgman_add_view (IAnjutaMessageManager *plugin,
GtkWidget *msgman = ANJUTA_PLUGIN_MESSAGE_VIEW (plugin)->msgman;
if (ANJUTA_PLUGIN_MESSAGE_VIEW (plugin)->widget_shown == FALSE)
{
- GtkWidget* hbox = gtk_hbox_new (FALSE, 0);
+ GtkWidget* hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
GtkWidget* label = gtk_label_new (_("Messages"));
GtkWidget* image = gtk_image_new_from_stock ("message-manager-plugin-icon",
GTK_ICON_SIZE_MENU);
diff --git a/plugins/project-wizard/druid.c b/plugins/project-wizard/druid.c
index 5730630..1a5f3ef 100644
--- a/plugins/project-wizard/druid.c
+++ b/plugins/project-wizard/druid.c
@@ -971,7 +971,7 @@ check_and_warn_missing (NPWDruid *druid)
"this project are missing. Please make sure they are "
"installed properly before generating the project.\n"));
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (hbox);
#ifdef ENABLE_PACKAGEKIT
diff --git a/plugins/project-wizard/property.c b/plugins/project-wizard/property.c
index 4b6aa76..c1331a0 100644
--- a/plugins/project-wizard/property.c
+++ b/plugins/project-wizard/property.c
@@ -499,7 +499,7 @@ npw_property_create_widget (NPWProperty* prop)
// Use an entry box and a browse button as GtkFileChooserButton
// allow to select only existing file
- widget = gtk_hbox_new (FALSE, 3);
+ widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
entry = gtk_entry_new ();
if (value) gtk_entry_set_text (GTK_ENTRY (entry), value);
diff --git a/plugins/snippets-manager/plugin.c b/plugins/snippets-manager/plugin.c
index d56c423..cec2cc2 100644
--- a/plugins/snippets-manager/plugin.c
+++ b/plugins/snippets-manager/plugin.c
@@ -300,7 +300,7 @@ snippets_manager_activate (AnjutaPlugin * plugin)
snippets_browser_load (snippets_manager_plugin->snippets_browser,
snippets_manager_plugin->snippets_db,
snippets_manager_plugin->snippets_interaction);
- gtk_widget_show_all (snippets_manager_plugin->snippets_browser);
+ gtk_widget_show_all (GTK_WIDGET (snippets_manager_plugin->snippets_browser));
anjuta_shell_add_widget_custom (plugin->shell,
GTK_WIDGET (snippets_manager_plugin->snippets_browser),
"snippets_browser",
diff --git a/plugins/sourceview/sourceview-print.c b/plugins/sourceview/sourceview-print.c
index a2a5bd9..3b254a7 100644
--- a/plugins/sourceview/sourceview-print.c
+++ b/plugins/sourceview/sourceview-print.c
@@ -117,7 +117,8 @@ create_custom_widget (GtkPrintOperation* operation,
gtk_check_button_new_with_label (_("Footer"));
GtkWidget* toggle_highlight =
gtk_check_button_new_with_label (_("Highlight source code"));
- GtkWidget* vbox = gtk_vbox_new (TRUE, 5);
+ GtkWidget* vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
+ gtk_box_set_homogeneous (GTK_BOX(vbox), TRUE);
g_settings_bind (sv->priv->settings, PRINT_LINEWRAP,
toggle_linewrap, "active", G_SETTINGS_BIND_DEFAULT);
diff --git a/plugins/starter/plugin.c b/plugins/starter/plugin.c
index d4f1c1a..c2d5f7e 100644
--- a/plugins/starter/plugin.c
+++ b/plugins/starter/plugin.c
@@ -120,7 +120,7 @@ build_recent_projects (GtkWidget *box, StarterPlugin* plugin)
gchar *uri;
GIcon* icon;
- button_box = gtk_hbox_new (FALSE, 5);
+ button_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
button = gtk_button_new ();
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
gtk_widget_set_halign (button, GTK_ALIGN_START);
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index 3a41e04..f6999cd 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -1376,7 +1376,7 @@ do_check_offline_files_changed (SymbolDBPlugin *sdb_plugin)
{
GFile *gfile;
gchar *filename;
- gchar *db_path;
+ const gchar *db_path;
gfile = node->data;
if (!gfile)
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
index 746dbf1..80b1ba9 100644
--- a/plugins/symbol-db/symbol-db-engine-core.c
+++ b/plugins/symbol-db/symbol-db-engine-core.c
@@ -1476,7 +1476,7 @@ static gint sdb_sort_files_list (gconstpointer file1, gconstpointer file2)
*/
static gboolean
sdb_engine_scan_files_1 (SymbolDBEngine * dbe, const GPtrArray * files_list,
- const GPtrArray *real_files_list, gboolean symbols_update,
+ GPtrArray *real_files_list, gboolean symbols_update,
gint scan_id)
{
SymbolDBEnginePriv *priv;
diff --git a/plugins/symbol-db/symbol-db-views.c b/plugins/symbol-db/symbol-db-views.c
index 288a346..0ba4adb 100644
--- a/plugins/symbol-db/symbol-db-views.c
+++ b/plugins/symbol-db/symbol-db-views.c
@@ -240,7 +240,7 @@ symbol_db_view_new (SymbolViewType view_type,
g_signal_connect (entry, "changed",
G_CALLBACK (on_search_entry_changed), model);
gtk_widget_show (entry);
- vbox = gtk_vbox_new (FALSE, 3);
+ vbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
gtk_widget_show (vbox);
gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]