anjuta r4727 - in trunk: . plugins/message-view plugins/tools
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4727 - in trunk: . plugins/message-view plugins/tools
- Date: Tue, 10 Feb 2009 10:16:38 +0000 (UTC)
Author: jhs
Date: Tue Feb 10 10:16:38 2009
New Revision: 4727
URL: http://svn.gnome.org/viewvc/anjuta?rev=4727&view=rev
Log:
2009-02-10 Yang Hong <hongyang redflag-linux com com>
* plugins/message-view/message-view.c (message_view_instance_init):
Align message filters into left.
* plugins/tools/anjuta-tools.glade:
Use GtkFileChooserDialog instead GtkFileSelection
* plugins/tools/variable.c (atp_variable_get_editor_variable):
Fixed #571143 - Double free crasher of path string.
Modified:
trunk/ChangeLog
trunk/plugins/message-view/message-view.c
trunk/plugins/tools/anjuta-tools.glade
trunk/plugins/tools/variable.c
Modified: trunk/plugins/message-view/message-view.c
==============================================================================
--- trunk/plugins/message-view/message-view.c (original)
+++ trunk/plugins/message-view/message-view.c Tue Feb 10 10:16:38 2009
@@ -712,7 +712,6 @@
GtkTreeSelection *select;
GtkListStore *model;
GtkAdjustment* adj;
- gint icon_width = 30; // FIXME: Obtain from theme
g_return_if_fail(self != NULL);
self->privat = g_new0 (MessageViewPrivate, 1);
@@ -732,6 +731,7 @@
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->privat->normal), TRUE);
gtk_button_set_focus_on_click (GTK_BUTTON (self->privat->normal), FALSE);
gtk_button_set_relief (GTK_BUTTON (self->privat->normal), GTK_RELIEF_HALF);
+ gtk_button_set_alignment (GTK_BUTTON (self->privat->normal), 0.0, 0.5);
gtk_widget_show (self->privat->normal);
g_signal_connect (G_OBJECT (self->privat->normal), "toggled",
G_CALLBACK (on_filter_buttons_toggled), self);
@@ -740,6 +740,7 @@
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->privat->info), TRUE);
gtk_button_set_focus_on_click (GTK_BUTTON (self->privat->info), FALSE);
gtk_button_set_relief (GTK_BUTTON (self->privat->info), GTK_RELIEF_HALF);
+ gtk_button_set_alignment (GTK_BUTTON (self->privat->info), 0.0, 0.5);
gtk_button_set_image (GTK_BUTTON (self->privat->info),
gtk_image_new_from_stock (GTK_STOCK_INFO,
GTK_ICON_SIZE_BUTTON));
@@ -751,6 +752,7 @@
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->privat->warn), TRUE);
gtk_button_set_focus_on_click (GTK_BUTTON (self->privat->warn), FALSE);
gtk_button_set_relief (GTK_BUTTON (self->privat->warn), GTK_RELIEF_HALF);
+ gtk_button_set_alignment (GTK_BUTTON (self->privat->warn), 0.0, 0.5);
/* FIXME: There is not GTK_STOCK_DIALOG_WARNING. */
gtk_button_set_image (GTK_BUTTON (self->privat->warn),
gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
@@ -763,6 +765,7 @@
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->privat->error), TRUE);
gtk_button_set_focus_on_click (GTK_BUTTON (self->privat->error), FALSE);
gtk_button_set_relief (GTK_BUTTON (self->privat->error), GTK_RELIEF_HALF);
+ gtk_button_set_alignment (GTK_BUTTON (self->privat->error), 0.0, 0.5);
gtk_button_set_image (GTK_BUTTON (self->privat->error),
gtk_image_new_from_stock (GTK_STOCK_STOP,
GTK_ICON_SIZE_BUTTON));
@@ -1194,7 +1197,6 @@
GtkTreeIter iter;
GtkTreeModel *model;
GtkTreeSelection *select;
- GtkTreePath *path;
model = view->privat->model;
select = gtk_tree_view_get_selection (GTK_TREE_VIEW
Modified: trunk/plugins/tools/anjuta-tools.glade
==============================================================================
--- trunk/plugins/tools/anjuta-tools.glade (original)
+++ trunk/plugins/tools/anjuta-tools.glade Tue Feb 10 10:16:38 2009
@@ -251,6 +251,8 @@
<child>
<widget class="GnomeFileEntry" id="fileentry3">
<property name="visible">True</property>
+ <property name="use_filechooser">True</property>
+ <property name="filechooser_action">select-folder</property>
<property name="max_saved">10</property>
<child internal-child="entry">
<widget class="GtkEntry" id="directory_entry">
Modified: trunk/plugins/tools/variable.c
==============================================================================
--- trunk/plugins/tools/variable.c (original)
+++ trunk/plugins/tools/variable.c Tue Feb 10 10:16:38 2009
@@ -332,7 +332,6 @@
path = g_file_get_path (file);
val = remove_filename(path);
g_object_unref (file);
- g_free(path);
break;
default:
g_return_val_if_reached (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]