Revision: 2029 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2029&view=re... Author: wfraser Date: 2011-04-17 12:25:22 +0000 (Sun, 17 Apr 2011)
Log Message: ----------- GTK version checking to stop problems with version 2.8 until 2.10
Modified Paths: -------------- trunk/geany-plugins/geanycfp/src/geanycfp.c
Modified: trunk/geany-plugins/geanycfp/src/geanycfp.c =================================================================== --- trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-04-14 11:57:41 UTC (rev 2028) +++ trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-04-17 12:25:22 UTC (rev 2029) @@ -1098,7 +1098,7 @@
/* check to see if file has changed since geany last saved it */ fd=GetFileData(doc->file_name); - if(stat(doc->file_name,&sBuf)==0 && fd!=NULL && fd->LastChangedTime!=-1 && + if(stat(doc->file_name,&sBuf)==0 && fd!=NULL && fd->LastChangedTime!=-1 && fd->LastChangedTime!=sBuf.st_mtime) { /* notify user that file has been changed */ @@ -1334,12 +1334,12 @@ GtkWidget *dialog,*label,*scroll;
/* create dialog box */ - dialog=gtk_dialog_new(); - gtk_window_set_title(GTK_WINDOW(dialog),_("ConTEXT feature parity help")); + dialog=gtk_dialog_new_with_buttons(_("ConTEXT feature parity help"), + GTK_WINDOW(geany->main_widgets->window), + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_STOCK_OK,GTK_RESPONSE_ACCEPT, + NULL);
- /* create buttons */ - gtk_dialog_add_button(GTK_DIALOG(dialog),_("Ok"),GTK_RESPONSE_OK); - /* create label */ label=gtk_label_new( _("This Plugin implements two useful features.\n\n" @@ -1531,7 +1531,7 @@ }
/* now check to see if numbered bookmark key is atempted - * + * * control and number pressed */ if(mod==4)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org