コード例 #1
0
ファイル: main_window.c プロジェクト: anishsheela/gphpedit
void fullscreen_show_hide(MainWindow *main_window, gboolean state)
{
    if (state) {
        gtk_window_fullscreen (GTK_WINDOW(main_window->window));
    } else {
        gtk_window_unfullscreen (GTK_WINDOW(main_window->window));
    }
}
コード例 #2
0
ファイル: gtk_win.c プロジェクト: Aishou/lxdream
void main_window_set_fullscreen( main_window_t win, gboolean fullscreen )
{
    if( fullscreen ) {
        gtk_window_fullscreen( GTK_WINDOW(win->window) );
    } else {
        gtk_window_unfullscreen( GTK_WINDOW(win->window) );
    }
}
コード例 #3
0
static void
photos_main_window_fullscreen_changed (PhotosMainWindow *self, gboolean fullscreen)
{
  if (fullscreen)
    gtk_window_fullscreen (GTK_WINDOW (self));
  else
    gtk_window_unfullscreen (GTK_WINDOW (self));
}
コード例 #4
0
ファイル: window.c プロジェクト: Alcaro/RetroArch
// TODO use window-state-event to track
// TODO does this send an extra size changed?
// TODO what behavior do we want?
void uiWindowSetFullscreen(uiWindow *w, int fullscreen)
{
	w->fullscreen = fullscreen;
	if (w->fullscreen)
		gtk_window_fullscreen(w->window);
	else
		gtk_window_unfullscreen(w->window);
}
コード例 #5
0
ファイル: gui-menu.c プロジェクト: aitjcize/Gummi
G_MODULE_EXPORT
void on_menu_fullscreen_toggled(GtkWidget *widget, void *user)
{
  if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget)))
    gtk_window_fullscreen(gui->mainwindow);
  else
    gtk_window_unfullscreen(gui->mainwindow);
}
コード例 #6
0
void CFullScreenWindow::init(GladeXML* ui)
{
	window = (GtkWindow*) glade_xml_get_widget(ui, "fullScreenWindow");
	restTimeLabel = (GtkLabel*) glade_xml_get_widget(ui, "restTimeLabel");
	whipLabel = (GtkLabel*) glade_xml_get_widget(ui, "whipLabel");
	gtk_window_fullscreen(window);
	gtk_window_set_keep_above(GTK_WINDOW(window), TRUE);
}
コード例 #7
0
ファイル: iupgtk_dialog.c プロジェクト: LuaDist/iup
static int gtkDialogSetFullScreenAttrib(Ihandle* ih, const char* value)
{                       
  if (iupStrBoolean(value))
  {
    if (!iupAttribGet(ih, "_IUPGTK_FS_STYLE"))
    {
      /* save the previous decoration attributes */
      /* during fullscreen these attributes can be consulted by the application */
      iupAttribStoreStr(ih, "_IUPGTK_FS_MAXBOX", iupAttribGet(ih, "MAXBOX"));
      iupAttribStoreStr(ih, "_IUPGTK_FS_MINBOX", iupAttribGet(ih, "MINBOX"));
      iupAttribStoreStr(ih, "_IUPGTK_FS_MENUBOX",iupAttribGet(ih, "MENUBOX"));
      iupAttribStoreStr(ih, "_IUPGTK_FS_RESIZE", iupAttribGet(ih, "RESIZE"));
      iupAttribStoreStr(ih, "_IUPGTK_FS_BORDER", iupAttribGet(ih, "BORDER"));
      iupAttribStoreStr(ih, "_IUPGTK_FS_TITLE",  IupGetAttribute(ih, "TITLE"));  /* must use IupGetAttribute to check from the native implementation */

      /* remove the decorations attributes */
      iupAttribSetStr(ih, "MAXBOX", "NO");
      iupAttribSetStr(ih, "MINBOX", "NO");
      iupAttribSetStr(ih, "MENUBOX", "NO");
      IupSetAttribute(ih, "TITLE", NULL); iupAttribSetStr(ih, "TITLE", NULL); /* remove from the hash table if we are during IupMap */
      iupAttribSetStr(ih, "RESIZE", "NO");
      iupAttribSetStr(ih, "BORDER", "NO");

      if (iupdrvIsVisible(ih))
        gtk_window_fullscreen((GtkWindow*)ih->handle);

      iupAttribSetStr(ih, "_IUPGTK_FS_STYLE", "YES");
    }
  }
  else
  {
    char* fs_style = iupAttribGet(ih, "_IUPGTK_FS_STYLE");
    if (fs_style)
    {
      iupAttribSetStr(ih, "_IUPGTK_FS_STYLE", NULL);

      /* restore the decorations attributes */
      iupAttribStoreStr(ih, "MAXBOX", iupAttribGet(ih, "_IUPGTK_FS_MAXBOX"));
      iupAttribStoreStr(ih, "MINBOX", iupAttribGet(ih, "_IUPGTK_FS_MINBOX"));
      iupAttribStoreStr(ih, "MENUBOX",iupAttribGet(ih, "_IUPGTK_FS_MENUBOX"));
      IupSetAttribute(ih, "TITLE",  iupAttribGet(ih, "_IUPGTK_FS_TITLE"));   /* must use IupSetAttribute to update the native implementation */
      iupAttribStoreStr(ih, "RESIZE", iupAttribGet(ih, "_IUPGTK_FS_RESIZE"));
      iupAttribStoreStr(ih, "BORDER", iupAttribGet(ih, "_IUPGTK_FS_BORDER"));

      if (iupdrvIsVisible(ih))
        gtk_window_unfullscreen((GtkWindow*)ih->handle);

      /* remove auxiliar attributes */
      iupAttribSetStr(ih, "_IUPGTK_FS_MAXBOX", NULL);
      iupAttribSetStr(ih, "_IUPGTK_FS_MINBOX", NULL);
      iupAttribSetStr(ih, "_IUPGTK_FS_MENUBOX",NULL);
      iupAttribSetStr(ih, "_IUPGTK_FS_RESIZE", NULL);
      iupAttribSetStr(ih, "_IUPGTK_FS_BORDER", NULL);
      iupAttribSetStr(ih, "_IUPGTK_FS_TITLE",  NULL);
    }
  }
  return 1;
}
コード例 #8
0
ファイル: videowindow.c プロジェクト: 42p/linphone
static void video_window_set_fullscreen(GtkWidget *w, gboolean val){
	if (val){
		g_object_set_data(G_OBJECT(w),"fullscreen",GINT_TO_POINTER(1));
			gtk_window_fullscreen(GTK_WINDOW(w));
	}else{
		g_object_set_data(G_OBJECT(w),"fullscreen",GINT_TO_POINTER(0));
			gtk_window_unfullscreen(GTK_WINDOW(w));
	}
}
コード例 #9
0
ファイル: main.c プロジェクト: gfunkmonk2/mate-games
static void
fullscreen_cb (GtkAction * action)
{
  if (action == fullscreen_action) {
    gtk_window_fullscreen (GTK_WINDOW (window));
  } else {
    gtk_window_unfullscreen (GTK_WINDOW (window));
  }
}
コード例 #10
0
ファイル: preview.c プロジェクト: TotalCaesar659/HandBrake
static gboolean
go_full(signal_user_data_t *ud)
{
    GtkWindow *window;
    window = GTK_WINDOW(GHB_WIDGET (ud->builder, "preview_window"));
    gtk_window_fullscreen(window);
    ghb_set_preview_image(ud);
    return FALSE;
}
コード例 #11
0
ファイル: htmlapp.c プロジェクト: DeforaOS/Surfer
/* surfer_set_fullscreen */
void surfer_set_fullscreen(Surfer * surfer, gboolean fullscreen)
{
	HTMLApp * htmlapp = surfer;

	if(fullscreen)
		gtk_window_fullscreen(GTK_WINDOW(htmlapp->window));
	else
		gtk_window_unfullscreen(GTK_WINDOW(htmlapp->window));
}
コード例 #12
0
ファイル: anypaper_preview.c プロジェクト: mogaal/anypaper
static void image_fullscreen ( GtkWidget *widget, AnypaperPreview *preview)
{
	if (preview->priv->state == WINDOW_NORMAL_STATE) gtk_window_fullscreen (GTK_WINDOW(preview->priv->window));
	if (preview->priv->state == WINDOW_FULLSCREEN_STATE)
	{
		timeout_destroy(preview->priv->source);
		gtk_window_unfullscreen (GTK_WINDOW(preview->priv->window));
	}
}
コード例 #13
0
ファイル: gu_menubar.c プロジェクト: Cy-4AH/showtime
static void
m_toggle_fullscreen(GtkCheckMenuItem *w, gpointer data)
{
  gu_window_t *gw = data;
  if(gtk_check_menu_item_get_active(w)) {
    gtk_window_fullscreen(GTK_WINDOW(gw->gw_window));
  } else {
    gtk_window_unfullscreen(GTK_WINDOW(gw->gw_window));
  }
}
コード例 #14
0
ファイル: gtk-app.c プロジェクト: douglasbagnall/sparrow
static void
toggle_fullscreen(GtkWidget *widget){
  GdkWindowState state = gdk_window_get_state(GDK_WINDOW(widget->window));
  if (state == GDK_WINDOW_STATE_FULLSCREEN){
    gtk_window_unfullscreen(GTK_WINDOW(widget));
  }
  else{
    gtk_window_fullscreen(GTK_WINDOW(widget));
  }
}
コード例 #15
0
ファイル: gt-win.c プロジェクト: AlejandroC90/gnome-twitch
static void
update_fullscreen(GtWin* self)
{
    GtWinPrivate* priv = gt_win_get_instance_private(self);

    if (priv->fullscreen)
        gtk_window_fullscreen(GTK_WINDOW(self));
    else
        gtk_window_unfullscreen(GTK_WINDOW(self));
}
コード例 #16
0
ファイル: ephy-lockdown.c プロジェクト: jdapena/epiphany
static void
fullscreen_cb (GSettings *settings,
	       char *key,
	       EphyWindow *window)
{
	if (g_settings_get_boolean (settings, key))
		gtk_window_fullscreen (GTK_WINDOW (window));
	else
		gtk_window_unfullscreen (GTK_WINDOW (window));
}
コード例 #17
0
ファイル: engineering.c プロジェクト: DeforaOS/Phone
/* on_engineering_fullscreen_toggled */
static void _on_engineering_fullscreen_toggled(gpointer data)
{
	Engineering * engineering = data;

	if(gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(
					engineering->tb_fullscreen)))
		gtk_window_fullscreen(GTK_WINDOW(engineering->window));
	else
		gtk_window_unfullscreen(GTK_WINDOW(engineering->window));
}
コード例 #18
0
ファイル: setting.c プロジェクト: fanglingsu/vimb
static int fullscreen(Client *c, const char *name, DataType type, void *value, void *data)
{
    if (*(gboolean*)value) {
        gtk_window_fullscreen(GTK_WINDOW(c->window));
    } else {
        gtk_window_unfullscreen(GTK_WINDOW(c->window));
    }

    return CMD_SUCCESS;
}
コード例 #19
0
ファイル: mainwindow.c プロジェクト: icebreaker/stjerm
static void mainwindow_toggle_fullscreen(GtkWidget *widget, gpointer user_data) {
    if (fullscreen) {
        gtk_window_unfullscreen(GTK_WINDOW(mainwindow));
        mainwindow_reset_position();
    }
    else
        gtk_window_fullscreen(GTK_WINDOW(mainwindow));
    fullscreen = !fullscreen;
    mainwindow_focus_terminal();
}
コード例 #20
0
void
games_fullscreen_action_set_is_fullscreen (GamesFullscreenAction *action, gboolean is_fullscreen)
{
    g_return_if_fail (GAMES_IS_FULLSCREEN_ACTION (action));  

    if (is_fullscreen)
        gtk_window_fullscreen (action->priv->window);
    else
        gtk_window_unfullscreen (action->priv->window);
}
コード例 #21
0
ファイル: coolwave2.c プロジェクト: alexmurray/gtkglext
/* Two callbacks for the popup menu items Fullscreen and Unfullscreen.
 * These are just making sure that the user can't select the same menu
 * item among these, twice in a row by making the current item selected
 * insensitive. GTK+-2.2.3 on my WinXP box seems to ignore any calls to
 * unfullscreen if the user has selected fullscreen on a window that's
 * already fullscreen.
 */
static void fullscreen_window (GtkWidget *current, gpointer other)
{
  GtkWidget *window = g_object_get_data(G_OBJECT(current), "window");
  if (window)
    {
	  gtk_widget_set_sensitive(GTK_WIDGET(current), FALSE);
	  gtk_widget_set_sensitive(GTK_WIDGET(other), TRUE);
	  gtk_window_fullscreen(GTK_WINDOW(window));
    }
}
コード例 #22
0
ファイル: Callbacks.c プロジェクト: defpy/QuickSetup
G_MODULE_EXPORT void FbsetOk_released()												// Change fbset resolution
{
	int x, y;
	int FbX = gtk_adjustment_get_value(FBSETX);
	int FbY = gtk_adjustment_get_value(FBSETY);
	char RunString[28];
	sprintf(RunString, "scripts/Tweaks/fbset-set %d %d", FbX, FbY);
	RunScript(RunString);
	gtk_window_fullscreen(GTK_WINDOW(Window_QuickSetup));
	gtk_window_unfullscreen(GTK_WINDOW(Window_QuickSetup));
}
コード例 #23
0
ファイル: ui.c プロジェクト: DebarajLenka/AwayFramework
void af_window_set_fullscreen(gboolean fullscreen)
{
    GtkWidget *window = global_get("window");

    global_set("fullscreen", (gpointer)fullscreen);

    if (fullscreen)
        gtk_window_fullscreen(GTK_WINDOW(window));
    else
        gtk_window_unfullscreen(GTK_WINDOW(window));
}
コード例 #24
0
ファイル: main.c プロジェクト: dluco/hydra
/* main entry-point */
int main(int argc, char *argv[])
{
	gboolean version = FALSE;
	gboolean fullscreen = FALSE;
	char *geometry = NULL;
	char **uris = NULL;
	GError *error = NULL;

	GOptionEntry entries[] = {
		{ "version", 'v', 0, G_OPTION_ARG_NONE, &version, "Print version number", NULL },
		{ "fullscreen", 0, 0, G_OPTION_ARG_NONE, &fullscreen, "Fullscreen mode", NULL },
		{ "geometry", 'g', 0, G_OPTION_ARG_STRING, &geometry, "X geometry specification", "GEOMETRY" },
		{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &uris, "Addresses", NULL },
		{ NULL }
	};

	/* initialize GTK and parse commandline options */
	if (!gtk_init_with_args(&argc, &argv, "[addresses]", entries, NULL, &error)) {
		die("%s\n", error->message);
	}

	if (version) {
		printf("hydra %s, 2014 David Luco\n", VERSION);
		exit(EXIT_SUCCESS);
	}

	/* create top level Hydra struct */
	hydra = g_new0(Hydra, 1);

	/* create first browser and add to browsers list */
	Browser *b = browser_new();
	hydra->browsers = g_list_append(hydra->browsers, b);

	if (fullscreen) {
		gtk_window_fullscreen(GTK_WINDOW(b->window));
	}
	
	if (uris) {
		/* load first uri in first tab (already created) */
		tab_load_uri(browser_get_current_tab(b), *uris++);
		/* load other uris (if any) in new tabs */
		while (uris && *uris) {
			tab_load_uri(tab_new(b, "Loading..."), *uris++);
		}
	} else {
		/* load homepage on startup */
		tab_load_uri(browser_get_current_tab(b), DEFAULT_HOME);
	}

	gtk_main();

	return 0;
}
コード例 #25
0
void ZLGtkApplicationWindow::setFullscreen(bool fullscreen) {
	if (fullscreen == myFullScreen) {
		return;
	}
	myFullScreen = fullscreen;

	if (myFullScreen) {
		gtk_window_fullscreen(GTK_WINDOW(myWindow));
	} else if (!myFullScreen) {
		gtk_window_unfullscreen(GTK_WINDOW(myWindow));
	}
}
コード例 #26
0
ファイル: Kioskit.c プロジェクト: webkopf/kioskit
static void togglefullscreen(GtkWidget* window, WebKitWebView* webView) {
	gchar* fs = g_object_get_data(G_OBJECT(window), "fullscreen");
	if (strcmp(fs, "u") == 0) {
		g_object_set_data(G_OBJECT(window), "fullscreen",
				g_strjoin(NULL, "f", NULL));
		gtk_window_fullscreen(GTK_WINDOW(window));
	} else {
		g_object_set_data(G_OBJECT(window), "fullscreen",
				g_strjoin(NULL, "u", NULL));
		gtk_window_unfullscreen(GTK_WINDOW(window));
	}
}
コード例 #27
0
ファイル: plugman.c プロジェクト: Davletvm/gtk
static void
change_fullscreen_state (GSimpleAction *action,
                         GVariant      *state,
                         gpointer       user_data)
{
  if (g_variant_get_boolean (state))
    gtk_window_fullscreen (user_data);
  else
    gtk_window_unfullscreen (user_data);

  g_simple_action_set_state (action, state);
}
コード例 #28
0
static void
enter_full_screen(RingMainWindow *self)
{
    g_return_if_fail(IS_RING_MAIN_WINDOW(self));
    auto priv = RING_MAIN_WINDOW_GET_PRIVATE(RING_MAIN_WINDOW(self));

    if (!priv->is_fullscreen) {
        gtk_widget_hide(priv->vbox_left_pane);
        gtk_window_fullscreen(GTK_WINDOW(self));
        priv->is_fullscreen = TRUE;
    }
}
コード例 #29
0
ファイル: chmsee.c プロジェクト: JackieXie168/chmsee
void chmsee_set_fullscreen(ChmSee* self, gboolean fullscreen) {
	g_debug("enter chmsee_set_fullscreen with fullscreen = %d", fullscreen);
	selfp->expect_fullscreen = fullscreen;

  if(fullscreen) {
	  g_debug("call gtk_window_fullscreen");
    gtk_window_fullscreen(GTK_WINDOW(self));
  } else {
	  g_debug("call gtk_window_unfullscreen");
    gtk_window_unfullscreen(GTK_WINDOW(self));
  }
}
コード例 #30
0
void roadmap_main_toggle_full_screen (void) {

   static int RoadMapIsFullScreen = 0;

   if (RoadMapIsFullScreen) {
      gtk_window_unfullscreen (GTK_WINDOW(RoadMapMainWindow));
      RoadMapIsFullScreen = 0;
   } else {
      gtk_window_fullscreen (GTK_WINDOW(RoadMapMainWindow));
      RoadMapIsFullScreen = 1;
   }
}