/[svn]/gigedit/trunk/src/gigedit/main.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3363 by persson, Mon May 22 18:58:46 2017 UTC revision 3364 by schoenebeck, Tue Nov 14 18:07:25 2017 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 2006, 2007 Andreas Persson   * Copyright (C) 2006 - 2017 Andreas Persson
3   *   *
4   * This program is free software; you can redistribute it and/or   * This program is free software; you can redistribute it and/or
5   * modify it under the terms of the GNU General Public License as   * modify it under the terms of the GNU General Public License as
# Line 20  Line 20 
20  #include "global.h"  #include "global.h"
21  #include <gtk/gtk.h>  #include <gtk/gtk.h>
22  #include "gigedit.h"  #include "gigedit.h"
23  #include <gtkmm.h>  #ifdef GTKMM_HEADER_FILE
24    # include GTKMM_HEADER_FILE(gtkmm.h)
25    #else
26    # include <gtkmm.h>
27    #endif
28    
29  #if GTKMM_MAJOR_VERSION >= 3  #if GTKMM_MAJOR_VERSION >= 3
30    
# Line 32  Line 36 
36   * was a good idea!   * was a good idea!
37   */   */
38  static void enforceGtk3Settings(int argc, char* argv[]) {  static void enforceGtk3Settings(int argc, char* argv[]) {
39    #if GTK_MAJOR_VERSION > 3 || (GTK_MAJOR_VERSION == 3 && (GTK_MINOR_VERSION > 89) || (GTK_MINOR_VERSION == 89 && GTK_MICRO_VERSION >= 3)) // GTK >= 3.89.3
40        gtk_init();
41    #else
42      gtk_init(&argc, &argv);      gtk_init(&argc, &argv);
43    #endif
44    
45      // got not behavior change on those 2 settings, so ignoring them for now,      // got no behavior change on those 2 settings, so ignoring them for now,
46      // actually I though I could use them to show the mnemonics in the GTK 3      // actually I though I could use them to show the mnemonics in the GTK 3
47      // menus again, but it seems that was entirely removed from around GTK 3.10.      // menus again, but it seems that was entirely removed from around GTK 3.10.
48      //g_object_set(gtk_settings_get_default(), "gtk-auto-mnemonics", false, NULL);      //g_object_set(gtk_settings_get_default(), "gtk-auto-mnemonics", false, NULL);

Legend:
Removed from v.3363  
changed lines
  Added in v.3364

  ViewVC Help
Powered by ViewVC